/*
 * @(#)IndividualDAO.java $version 2011. 5. 19.
 *
 */

package org.doit.android.bobple.server.dao;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.stereotype.Repository;

/**
 *
 * @author Choi HongKi
 */
@Repository
public class IndividualDAO {
	private static final String MY_SQLMAP_NAMESPACE = "org.doit.android.bobple.server.individual";

	@Autowired
	SqlMapClientTemplate sqlMapClientTemplate;

	@SuppressWarnings("unchecked")
	public List<Map<String, Object>> selectLunchHistory(Map<String, Object> paramMap) {
		return sqlMapClientTemplate.queryForList(MY_SQLMAP_NAMESPACE + ".selectLunchHistory", paramMap);
	}

	@SuppressWarnings("unchecked")
	public Map<String, Object> selectUserIsAuthorized(Map<String, Object> paramMap) {
		return (Map<String, Object>)sqlMapClientTemplate.queryForObject(MY_SQLMAP_NAMESPACE + ".selectUserIsAuthorized", paramMap);
	}
}
